package com.zhku.entity;

import java.time.LocalDate;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 疫苗
 * </p>
 *
 * @author dewey
 * @since 2023-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Vaccinum implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long Id;

    /**
     * 疫苗名称
     */
    private String name;

    /**
     * 疫苗类型
     */
    private Integer type;

    /**
     * 目标人群
     */
    private String target;

    /**
     * 作用
     */
    private String effect;

    /**
     * 不良反应
     */
    private String advReactions;

    /**
     * 生产厂家
     */
    private String producer;

    /**
     * 生产日期
     */
    //  @JsonDeserialize(using = LocalDateDeserializer.class)		// 反序列化
    // @JsonSerialize(using = LocalDateSerializer.class)		// 序列化
    private String createTime;

    /**
     * 类型名称
     */
    @TableField(exist = false)
    private String typeName;

}
